<?php
class NewsCatesFForm extends BaseFormAdmin{
	public function configure(){
		$this->setWidgets(array(
	      'name'        => new sfWidgetFormInputText(),
	      'description' => new sfWidgetFormTextarea(),
	      'tags'        => new sfWidgetFormInputText(),
	    ));
	
	    $this->setValidators(array(
	      'name'        => new sfValidatorString(array('max_length' => 255, 'required' => false)),
	      'description' => new sfValidatorString(array('required' => false)),
	      'tags'        => new sfValidatorString(array('required' => false)),
	    ));
		parent::configure();
		
		$this->widgetSchema->setNameFormat('NewsCates[%s]');
		$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
	}
	
}
